package com.fzj.example.design.command;

/**
* @Description 调用者
* @Author  fanzj
* @Date   2020/5/10 6:16 下午
* @Param
* @Return
* @Exception
*
*/
public class Invoker {
    private Command command;

    public Invoker() {

    }

    public Invoker(Command command) {
        this.command = command;
    }

    public void call(){
        System.out.println("调用者执行命令command...");
        this.command.execute();
    }

}
